package cn.tedu.mycoolshark.controller;

import cn.tedu.mycoolshark.entity.Category;
import cn.tedu.mycoolshark.map.CategoryMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.CacheManager;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class CategoryController {
    @Autowired
    CategoryMapper mapper;
    @RequestMapping("/category/select")
    public List<Category> select(Category category){
     return mapper.select(category);
    }
}
